[Docs] Increase vm.max_map_count suggested value (attempt 2)#9004
Closed
shainaraskas wants to merge 9 commits intoelastic:2.16from
Closed
[Docs] Increase vm.max_map_count suggested value (attempt 2)#9004shainaraskas wants to merge 9 commits intoelastic:2.16from
shainaraskas wants to merge 9 commits intoelastic:2.16from
Conversation
…rtual-memory.asciidoc Co-authored-by: Peter Brachwitz <peter.brachwitz@elastic.co>
Collaborator
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
shainaraskas
commented
Jan 13, 2026
…rtual-memory.asciidoc
barkbay
approved these changes
Jan 15, 2026
| The kernel setting `vm.max_map_count=262144` can be set on the host directly, by a dedicated init container which must be privileged, or a dedicated Daemonset. | ||
| The kernel setting `vm.max_map_count=1048576` can be set on the host directly, by a dedicated init container which must be privileged, or a dedicated Daemonset. | ||
|
|
||
| IMPORTANT: For {{es}} version 8.16 and later, set the `vm.max_map_count` kernel setting to `1048576`; for {{es}} version 8.15 and earlier, set `vm.max_map_count` to `262144`. The exception is in GKE Autopilot environments, where `vm.max_map_count` must always be set to `262144`. This is because any privileged DaemonSet in GKE Autopilot must match the DaemonSet pre-approved by Google. |
Contributor
There was a problem hiding this comment.
I understand that this is a backport to 2.16, I was wondering if we still want to mention the ComputeClass in the "current" documentation:
Suggested change
| IMPORTANT: For {{es}} version 8.16 and later, set the `vm.max_map_count` kernel setting to `1048576`; for {{es}} version 8.15 and earlier, set `vm.max_map_count` to `262144`. The exception is in GKE Autopilot environments, where `vm.max_map_count` must always be set to `262144`. This is because any privileged DaemonSet in GKE Autopilot must match the DaemonSet pre-approved by Google. | |
| IMPORTANT: For {{es}} version 8.16 and later, set the `vm.max_map_count` kernel setting to `1048576`; for {{es}} version 8.15 and earlier, set `vm.max_map_count` to `262144`. The exception is in GKE Autopilot environments, where `vm.max_map_count` must always be set to `262144` when using a DaemonSet instead of a [ComputeClass](/deploy-manage/deploy/cloud-on-k8s/virtual-memory.md#k8s_using_a_computeclass_to_set_virtual_memory). This is because any privileged DaemonSet in GKE Autopilot must match the DaemonSet pre-approved by Google. |
Member
Author
There was a problem hiding this comment.
that content is covered over here: elastic/docs-content#4490
sorry for the noise - this PR was me trying to troubleshoot why I was blocked from merging :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We want to recommend a higher vm.max_map_count for Elasticsearch environments - additional context in issue
Changes made:
262144to1048576in docs and examples, with the exception of GKE Autopilotrecreation of #8971 (couldn't be merged because it wasn't from a fork)
What issues does this PR fix?
Part of https://github.com/elastic/docs-content-internal/issues/592